package com.junjie.checkin.request.gift;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author 洪浚杰
 * @description
 * @date 2025/6/16 15:22
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class GiftFrontPageRequest {
    private Integer page;
    private Integer pageSize;
    private String name;
    public void initDefaults() {
        if (page == null || page < 1) {
            page = 1;
        }
        if (pageSize == null || pageSize < 1) {
            pageSize = 10;
        }
    }
}
